//管理员端模板类型数据
package xiangmu.schoolpaper.controller.system;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import xiangmu.schoolpaper.service.DictTemplateTypeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/api/template-type")
@RequiredArgsConstructor
@Tag(name = "获取模板类型数据")
public class DictTemplateTypeController {

    @Autowired
    private DictTemplateTypeService dictTemplateTypeService;

    @GetMapping("/getDictTemplateType")

    @Operation(summary = "获取模板数据类型接口")
    public List<String> getAllTemplateTypeNames() {
        log.info("获取模板数据类型");
        return dictTemplateTypeService.getAllTemplateTypeNames();
    }
}